package com.ruoyi.house_sale.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 房产事件对象 HouseEvent
 *
 * @author ruoyi
 * @date 2022-04-08
 */
public class HouseEvent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long houseeventid;

    /** 房产事件编号（关联房产信息表） */
    @Excel(name = "房产事件编号", readConverterExp = "关=联房产信息表")
    private Long houseid;

    /** 事件类型 */
    @Excel(name = "事件类型")
    private String eventtype;

    /** 保留期限 */
    @Excel(name = "保留期限")
    private String expire;

    /** 有效期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expiretime;

    /** 操作人（session用户名称） */
    @Excel(name = "操作人", readConverterExp = "s=ession用户名称")
    private String userid;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date oprtime;

    /** 描述 */
    @Excel(name = "描述")
    private String demo;

    /** 退房编号（仅仅退房时使用） */
    @Excel(name = "退房编号", readConverterExp = "仅=仅退房时使用")
    private Long buyid;

    public void setHouseeventid(Long houseeventid)
    {
        this.houseeventid = houseeventid;
    }

    public Long getHouseeventid()
    {
        return houseeventid;
    }
    public void setHouseid(Long houseid)
    {
        this.houseid = houseid;
    }

    public Long getHouseid()
    {
        return houseid;
    }
    public void setEventtype(String eventtype)
    {
        this.eventtype = eventtype;
    }

    public String getEventtype()
    {
        return eventtype;
    }
    public void setExpire(String expire)
    {
        this.expire = expire;
    }

    public String getExpire()
    {
        return expire;
    }
    public void setExpiretime(Date expiretime)
    {
        this.expiretime = expiretime;
    }

    public Date getExpiretime()
    {
        return expiretime;
    }
    public void setUserid(String userid)
    {
        this.userid = userid;
    }

    public String getUserid()
    {
        return userid;
    }
    public void setOprtime(Date oprtime)
    {
        this.oprtime = oprtime;
    }

    public Date getOprtime()
    {
        return oprtime;
    }
    public void setDemo(String demo)
    {
        this.demo = demo;
    }

    public String getDemo()
    {
        return demo;
    }
    public void setBuyid(Long buyid)
    {
        this.buyid = buyid;
    }

    public Long getBuyid()
    {
        return buyid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("houseeventid", getHouseeventid())
                .append("houseid", getHouseid())
                .append("eventtype", getEventtype())
                .append("expire", getExpire())
                .append("expiretime", getExpiretime())
                .append("userid", getUserid())
                .append("oprtime", getOprtime())
                .append("demo", getDemo())
                .append("buyid", getBuyid())
                .toString();
    }
}
